package com.acsior.hibernate.vo;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;

/**
 * CompensationService entity. @author MyEclipse Persistence Tools <b><i>powered
 * by Belev</i></b>
 */
@Entity
@Table(name = "compensation_services")
@GeneratorKey(tableName = "service_requests")
public class CompensationServiceVO extends ServiceRequestVO {

	private static final long serialVersionUID = -513967120790897561L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "subscription_id", nullable = false)
	private SubscriptionVO subscription;

	/** default constructor */
	public CompensationServiceVO() {
		super();
	}

	/** @return the subscription */
	public SubscriptionVO getSubscription() {
		return this.subscription;
	}

	/** @param subscription */
	public void setSubscription(SubscriptionVO subscription) {
		this.subscription = subscription;
	}
}